import {instance} from 'common/js/axios'
import axios from 'axios'
import qs from 'qs'
export default {
  post: (url, data)=> {
    return axios.post(url,qs.stringify(data));
  },
  postJSON: (url, data)=> {
    return axios.post(url,data);
  },
  save: (data)=> {
    return axios.post('user/save',qs.stringify(data));
  },
  update: (data)=> {
    return axios.post('user/edit',qs.stringify(data));
  },
  get: (data)=> {
    return axios.post('user/get', qs.stringify(data));
  }
}
